package com.eshipenet.shipnet.equipmentdatahub
import play.api.libs.json.{Format, JsValue, Json}

import scala.util.Try

object Equipment {

  def apply(raw: JsValue): Try[Equipment] = Try {
    val id = (raw \ "id").as[String]
    Equipment(id, raw)
  }

}

case class Equipment(id: String, raw: JsValue)
